import jsonp from 'assets/js/jsonp';
import { commonParams,options } from 'api/config';

export function search(value){
	const url = 'https://c.y.qq.com/soso/fcgi-bin/search_for_qq_cp';

	var data = Object.assign({
		platform:'h5',
		needNewCode:1,
		uin:0,
		n:20,
		inCharset:'utf8',
		outCharset:'utf-8',
		w:value
	},commonParams)

	return jsonp(url,data,options)
}